<?php

/**
 * Created by Atom.
 * User: qiliping
 * Date: 2017/2/14
 * Time: 11:31
 * 科目model
 */
class Subject_model extends CI_Model
{
  /**
   * 获取所有科目
   * @return [type] [description]
   */
  public function get_subject()
  {
    $sql = "SELECT * FROM {$this->db->dbprefix}b_subject";
    return $this->db->query($sql)->result_array();
  }
}
